package com.ruoyi.basedata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.basedata.domain.DmWarnStrategy;

import java.util.List;

/**
 * 告警策略Mapper接口
 * 
 * @author 告警策略
 * @date 2023-09-06
 */
public interface DmWarnStrategyMapper extends BaseMapper<DmWarnStrategy>
{
    /**
     * 查询告警策略
     * 
     * @param ID 告警策略主键
     * @return 告警策略
     */
    public DmWarnStrategy selectDmWarnStrategyByID(Long ID);

    /**
     * 查询告警策略列表
     * 
     * @param dmWarnStrategy 告警策略
     * @return 告警策略集合
     */
    public List<DmWarnStrategy> selectDmWarnStrategyList(DmWarnStrategy dmWarnStrategy);

    /**
     * 新增告警策略
     * 
     * @param dmWarnStrategy 告警策略
     * @return 结果
     */
    public int insertDmWarnStrategy(DmWarnStrategy dmWarnStrategy);

    /**
     * 修改告警策略
     * 
     * @param dmWarnStrategy 告警策略
     * @return 结果
     */
    public int updateDmWarnStrategy(DmWarnStrategy dmWarnStrategy);

    /**
     * 删除告警策略
     * 
     * @param ID 告警策略主键
     * @return 结果
     */
    public int deleteDmWarnStrategyByID(Long ID);

    /**
     * 批量删除告警策略
     * 
     * @param IDs 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDmWarnStrategyByIDs(Long[] IDs);
}
